import request from '@/utils/request'

// 查询教学事故列表
export function listTeachAccident(query) {
  return request({
    url: '/teach/teachAccident/list',
    method: 'get',
    params: query
  })
}

// 查询教学事故详细
export function getTeachAccident(id) {
  return request({
    url: '/teach/teachAccident/' + id,
    method: 'get'
  })
}

// 新增教学事故
export function addTeachAccident(data) {
  return request({
    url: '/teach/teachAccident',
    method: 'post',
    data: data
  })
}

// 修改教学事故
export function updateTeachAccident(data) {
  return request({
    url: '/teach/teachAccident',
    method: 'put',
    data: data
  })
}

// 删除教学事故
export function delTeachAccident(id) {
  return request({
    url: '/teach/teachAccident/' + id,
    method: 'delete'
  })
}

// 导出教学事故
export function exportTeachAccident(query) {
  return request({
    url: '/teach/teachAccident/export',
    method: 'get',
    params: query
  })
}


// 下载导入模板
export function importTemplate() {
  return request({
    url: '/teach/teachAccident/importTemplate',
    method: 'get'
  })
}
